package com.ufgov.zc.client.zc.supplierIntegrityManage;import java.awt.Component;import java.awt.event.ItemEvent;import java.awt.event.ItemListener;import javax.swing.DefaultCellEditor;import javax.swing.JCheckBox;import javax.swing.JTable;public class JCheckBoxCellEditor extends DefaultCellEditor implements ItemListener {  /**   *    */  private static final long serialVersionUID = 1L;  private JCheckBox button;  public JCheckBoxCellEditor(JCheckBox checkBox) {    super(checkBox);  }  public Component getTableCellEditorComponent(JTable table, Object value,  boolean isSelected, int row, int column) {    if (value == null)      return null;    button = (JCheckBox) value;    button.addItemListener(this);    return (Component) value;  }  public Object getCellEditorValue() {    button.removeItemListener(this);    return button;  }  public void itemStateChanged(ItemEvent e) {    super.fireEditingStopped();  }}